... on older Visual Studio versions, where isinf() is not available, and
copy the isinf() implementation from gdk/fallback-c89.c to
gtk/fallback-c89.c.
return floor (x + 0.5);
}
#endif
+
+#ifndef HAVE_DECL_ISINF
+/* Unfortunately MSVC does not have finite()
+ * but it does have _finite() which is the same
+ * as finite() except when x is a NaN
+ */
+static inline gboolean
+isinf (double x)
+{
+ return (!_finite (x) && !_isnan (x));
+}
+#endif
#include "config.h"
-#include <math.h>
-
#include "gtkcssnumbervalueprivate.h"
#include "gtkcssenumvalueprivate.h"
#include "gtkcssinitialvalueprivate.h"
#include "gtkstylepropertyprivate.h"
+#include "fallback-c89.c"
+
struct _GtkCssValue {
GTK_CSS_VALUE_BASE
GtkCssUnit unit;